import request from '@/utils/request'

// 查询需求类型列表
export function listMenNeedType(query) {
  return request({
    url: '/men/menNeedType/list',
    method: 'get',
    params: query
  })
}

// 查询需求类型详细
export function getMenNeedType(id) {
  return request({
    url: '/men/menNeedType/' + id,
    method: 'get'
  })
}

// 新增需求类型
export function addMenNeedType(data) {
  return request({
    url: '/men/menNeedType',
    method: 'post',
    data: data
  })
}

// 修改需求类型
export function updateMenNeedType(data) {
  return request({
    url: '/men/menNeedType',
    method: 'put',
    data: data
  })
}

// 删除需求类型
export function delMenNeedType(id) {
  return request({
    url: '/men/menNeedType/' + id,
    method: 'delete'
  })
}

// 导出需求类型
export function exportMenNeedType(query) {
  return request({
    url: '/men/menNeedType/export',
    method: 'get',
    params: query
  })
}